package club.kingyin.kyblogprocore.service;

import club.kingyin.commons.entity.core.Tag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * (Tag)表服务接口
 *
 * @author makejava
 * @since 2022-02-16 18:22:14
 */
public interface TagService extends IService<Tag> {

    List<Tag> getByUserId(int id);

    List<Tag> getTagsAndCountByUserId(int userId);

    boolean containsName(int userid, String name);

    boolean removeTagFromDocumentByTagId(int userid, int id);

    List<String> getTagsByTag(String tag);

}

